//
//  game.h
//  Tic_Tac_Toe
//
//  Created by Daniel on 2024/5/20.
//

#ifndef game_h
#define game_h

#endif /* game_h */
#ifndef TIC_TAC_TOE__GAME_H
#define TIC_TAC_TOE__GAME_H
#define ROW 3
#define COLUMN 3

#endif //TIC_TAC_TOE__GAME_H
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

//初始化棋盘(initialize the board)
void Init_board(char board[ROW][COLUMN],int row,int column);

//显示棋盘(show the board)
void Display_board(char board[ROW][COLUMN],int row,int column);

//玩家下棋(players tern)
void Player_move(char board[ROW][COLUMN],int row,int column);

//电脑下棋(mechines tern)
void Machine_move(char board[ROW][COLUMN],int row,int column);

//判断输赢(Judging)
char Judgement(char board[ROW][COLUMN],int row,int column);

//判断棋盘是否被填满
int Be_fulled(char board[ROW][COLUMN],int row,int column);
